// 相对路径（不推荐使用）

/* const { log } = require("node:console")
const path = require("node:path")

const result = path.resolve("./note.txt")

console.log(result); */


// 绝对路径

const path = require("node:path")

const result = path.resolve("__dirname","note.txt")

console.log(result);